package One;

public class Dog implements Comparable<Dog> {
	String name;
	String owner;
	public Dog(String name,String owner){
		this.name=name;
		this.owner=owner;
		
	}
	public void print(){
		System.out.println(name+owner);
		
	}
	@Override
	public int compareTo(Dog o) {
		return this.name.compareTo(o.name);
		
	}
}
